﻿namespace GoodAdmin.Core;

/// <summary>
/// 全局分页查询输入参数
/// </summary>
public class BasePageInput
{
    /// <summary>
    /// 当前页码
    /// </summary>
    [DataValidation(ValidationTypes.Numeric)]
    public virtual int PageIndex { get; set; }

    /// <summary>
    /// 页码容量
    /// </summary>
    [Range(0, 100, ErrorMessage = "页码容量超出正常范围")]
    [DataValidation(ValidationTypes.Numeric)]
    public virtual int PageSize { get; set; }

    /// <summary>
    /// 排序字段
    /// </summary>
    public virtual string SortField { get; set; }

    /// <summary>
    /// 排序方向
    /// </summary>
    public virtual string SortOrder { get; set; }

    /// <summary>
    /// 数据范围
    /// </summary>
    public virtual List<long> DataScope { get; set; }
}